# while循环_第一种九九乘法表
row = 1
while row <= 9:
    col = 1
    while col <= row:
        print('{}*{}={:<2}'.format(row,col,row*col),end=' ')
        col = col+1
    print('')
    row = row + 1
print('='*70)
print('')

# while循环_第二种九九乘法表
row = 9
while row > 0:
    col = 1
    while col <= row:
        print('{}*{}={:<2}'.format(row,col,row*col),end=' ')
        col = col+1
    print('')
    row = row - 1
print('='*70)
print('')

# while循环_第三种九九乘法表
row = 1
while row<=9:
    m=1
    while m<=9-row:
        print('{}'.format('       '),end='')
        m=m+1
    col=1
    while col<=row:
        print('{}*{}={:<2}'.format(row,col,row*col),end=' ')
        col = col+1
    row = row+1
    print('')
print('='*70)
print('')

# while循环_第四种九九乘法表
row = 9
while row > 0:
    m=1
    while m<10-row:
        print('{}'.format('       '),end='')
        m=m+1
    col=1
    while col<=row:
        print('{}*{}={:>2}'.format(row,col,row*col),end=' ')
        col = col+1
    row = row-1
    print('')